package cm.DTO;

import cm.annotation.DataMasking;
import cm.enums.DataMaskingFunc;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author: yxh
 * @Description: 脱敏-test
 * @Date: Created in 2022/8/29 11:09
 * @Modified By:
 */
@Data
@Accessors(chain = true)
public class UserDTO implements Serializable {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 姓名
     */
    @DataMasking(maskFunc = DataMaskingFunc.ALL_MASK)
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 邮箱
     */
    @DataMasking(maskFunc = DataMaskingFunc.ALL_MASK)
    private String email;

}
